package com.bc.web.config.route;

import com.bc.web.controller.org.AccountController;
import com.bc.web.controller.org.MainController;
import com.bc.web.controller.org.MerchController;
import com.bc.web.controller.org.MerchRoleController;
import com.bc.web.controller.org.MerchUserController;
import com.bc.web.controller.org.OrgRoleController;
import com.bc.web.controller.org.OrgUserController;
import com.bc.web.controller.org.PayOrderContoller;
import com.bc.web.controller.org.ReportController;
import com.bc.web.controller.org.TradeOrderController;
import com.jfinal.config.Routes;

/**
 * 配置路由规则,相当于配置action访问地址
 * 
 * @author zhongzf
 *
 *         2016年6月19日
 */
public class OrgRoute extends Routes {
	
	@Override
	public void config() {
		super.setBaseViewPath("/WEB-INF/org/");
		super.add("/org", MainController.class,"/");
		super.add("/org/user", OrgUserController.class, "/");
		super.add("/org/role", OrgRoleController.class, "/");
		super.add("/org/order",TradeOrderController.class,"/");
		super.add("/org/account",AccountController.class,"/");
		super.add("/org/report",ReportController.class,"/");
		super.add("/org/merch",MerchController.class,"/");
		super.add("/org/merch/user",MerchUserController.class,"/");
		super.add("/org/merch/role",MerchRoleController.class,"/");
		super.add("/org/payorder",PayOrderContoller.class,"/");
	}
	
}
